﻿using ConfExpert.Enums;
using ConfExpert.Forms.Base;
using DevTeam;
using System;

namespace ConfExpert.Planlama
{
    public partial class ReorderItems : XForm
    {
        enum StokTipi
        {
            Other = 0,
            Kumas,
            Aksesuar
        }

        StokTipi st;
        public ReorderItems()
        {
            InitializeComponent();
            
            //st = _st == FormType.Kumas ? StokTipi.Kumas : StokTipi.Aksesuar;
            st = StokTipi.Kumas;
            txtInfo.Caption = "ReorderPublicSKUs - " + (st == StokTipi.Kumas ? "Kumaş" : "Aksesuar");
        }

        //BindingSource bsReorder;
        private void ReorderItems_Load(object sender, EventArgs e)
        {
            gvReorder.Init("GetReorderItems", st);
            gvReorder.Columns["ProductCategoryId"].GroupIndex = 0;
            gvReorder.ExpandAllGroups();
        }
    }
}